/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   15-8-26 下午6:38 Created by lyyang
 */
package com.jade.modules.message.service.pipeline;

import com.jade.framework.base.util.SimpleParameters;
import com.jade.modules.message.service.Message;

/**
 * 消息上下文
 *
 * @author <a href="mailto:lyyang@ceno.cn">lyyang</a>
 * @version 1.0 15-8-26 下午6:38
 */
public class MessageContext
        extends SimpleParameters
{
    private Message message;

    public MessageContext(Message message)
    {
        this.message = message;
    }

    public Message getMessage()
    {
        return message;
    }

    public String getType()
    {
        return message.getType();
    }
}
